//
//  UIAlertTool.h
//  A_Over_Packaging
//
//  Created by ChenNing on 15/10/24.
//  Copyright © 2015年 chenn. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface UIAlertTool : NSObject

@property (nonatomic, assign) NSInteger buttonIndex;
/**
 *  UIAlertView封装
 *
 *  @param viewController    调用的controller
 *  @param title             标题
 *  @param message           内容
 *  @param cancelButtonTitle 取消按钮
 *  @param otherButtonTitle  确定按钮
 *  @param confirm           取消回调方法
 *  @param cancle            确定回调方法
 */
- (void)showAlertView:(UIViewController *)viewController
                title:(NSString *)title
              message:(NSString *)message
    cancelButtonTitle:(NSString *)cancelButtonTitle
     otherButtonTitle:(NSString *)otherButtonTitle
              confirm:(void (^)())confirm
               cancle:(void (^)())cancle;



- (void)showAlertSheet:(UIViewController *)viewController
                 title:(NSString *)title
        buttonTitleArr:(NSArray *)buttonTitleArr
           buttonIndex:(void (^)(NSInteger index))buttonIndex;
@end
